package org.msd.service;

import org.msd.dao.Personal;
import org.msd.model.Persohaldetails;
import org.msd.service.iml.PerohSerice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class PerohSerceimp implements PerohSerice {
    @Autowired
    private Personal personal;
    /*
    个人信息插入
     */
    @Override
    public int Insertpersonal(Persohaldetails persohaldetails) {
        return  personal.Insertpersonal(persohaldetails)  ;
    }

    @Override
    public int thrustinformation(String name, String realname, String identification, String location) {
        return personal.thrustinformation(name,realname,identification,location);
    }

    @Override
    public int DeleteMessage(String name) {
        return personal.DeleteMessage(name);
    }


}
